Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/js/imgareaselect/jquery.imgareaselect.dev.js

    r20602 r21346  
    11/*
    22 * imgAreaSelect jQuery plugin
    3  * version 0.9.8
     3 * version 0.9.9
    44 *
    55 * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net)
     
    707707
    708708        /* If this is an API call, callback functions should not be triggered */
    709         if (!this instanceof $.imgAreaSelect) {
     709        if (!(this instanceof $.imgAreaSelect)) {
    710710            options.onSelectChange(img, getSelection());
    711711            options.onSelectEnd(img, getSelection());
     
    867867     */
    868868    function styleOptions($elem, props) {
    869         for (option in props)
     869        for (var option in props)
    870870            if (options[option] !== undefined)
    871871                $elem.css(props[option], options[option]);
     
    11441144     * accommodate for MSIE 9 running in compatibility mode.
    11451145     */
    1146    if ($.browser.msie && $.browser.version >= 7)
     1146   if (!imgLoaded && $.browser.msie && $.browser.version >= 7)
    11471147        img.src = img.src;
    11481148};
Note: See TracChangeset for help on using the changeset viewer.