Skip to content

Commit

Permalink
Fixes firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer authored and daffl committed Nov 12, 2015
1 parent d898369 commit b9fead5
Show file tree
Hide file tree
Showing 17 changed files with 133 additions and 121 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -247,4 +247,4 @@
"./util/vdom/build_fragment/build_fragment": "./dist/cjs/util/vdom/build_fragment/build_fragment",
"./view/import/import": "./dist/cjs/view/import/import"
}
}
}
1 change: 1 addition & 0 deletions test/dev/dojo.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="util/dojo/dojo-1.8.1.js"></script>
<script type="text/javascript" src="dist/can.dojo.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dev/jquery-2.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="dist/can.jquery.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dev/jquery.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="dist/can.jquery.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dev/mootools.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="bower_components/mootools/dist/mootools-core.js"></script>
<script type="text/javascript" src="dist/can.mootools.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dev/yui.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="util/yui/yui-3.7.3.js"></script>
<script type="text/javascript" src="dist/can.yui.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dev/zepto.html
Expand Up @@ -39,6 +39,7 @@ <h2 id="qunit-userAgent"></h2>
QUnit.config.autostart = false;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript" src="bower_components/zepto/zepto.js"></script>
<script type="text/javascript" src="dist/can.zepto.dev.js"></script>
Expand Down
1 change: 1 addition & 0 deletions test/dist/dojo.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
1 change: 1 addition & 0 deletions test/dist/jquery-2.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
1 change: 1 addition & 0 deletions test/dist/jquery.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
1 change: 1 addition & 0 deletions test/dist/mootools.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
1 change: 1 addition & 0 deletions test/dist/yui.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
1 change: 1 addition & 0 deletions test/dist/zepto.html
Expand Up @@ -41,6 +41,7 @@ <h2 id="qunit-userAgent"></h2>
module = undefined;
</script>

<script type="text/javascript" src="node_modules/can-simple-dom/node_modules/micro-location/lib/micro-location.js"></script>
<script type="text/javascript" src="node_modules/can-simple-dom/dist/global/can-simple-dom.js"></script>
<script type="text/javascript">
module = MODULE_ALIAS;
Expand Down
3 changes: 1 addition & 2 deletions test/jquery-2.html
Expand Up @@ -58,7 +58,6 @@
"can/view/autorender/autorender_test.js",
"can/util/vdom/build_fragment/build_fragment_test.js",
"can/view/import/import_test.js",
"can/util/jquery/jquery_test.js",
function() {
can.dev.logLevel = 3;
});
Expand All @@ -67,4 +66,4 @@
<div id="qunit-fixture"></div>
</body>

</html>
</html>
3 changes: 1 addition & 2 deletions test/jquery.html
Expand Up @@ -56,7 +56,6 @@
"can/view/autorender/autorender_test.js",
"can/util/vdom/build_fragment/build_fragment_test.js",
"can/view/import/import_test.js",
"can/util/jquery/jquery_test.js",
function() {
can.dev.logLevel = 3;
});
Expand All @@ -65,4 +64,4 @@
<div id="qunit-fixture"></div>
</body>

</html>
</html>
6 changes: 3 additions & 3 deletions view/bindings/bindings.js
Expand Up @@ -347,11 +347,11 @@ steal("can/util", "can/view/stache/expression.js", "can/view/callbacks", "can/co
}
});
} else {
if(!options.legacyBindings && hasChildren && ("selectedIndex" in el) && newVal == null) {
if(!options.legacyBindings && hasChildren && ("selectedIndex" in el)) {
el.selectedIndex = -1;
} else {
can.attr.setAttrOrProp(el, prop, newVal == null ? "" : newVal);
}
can.attr.setAttrOrProp(el, prop, newVal == null ? "" : newVal);


}
return newVal;
Expand Down

0 comments on commit b9fead5

Please sign in to comment.