Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some errors, converting back n['n'] to n.n

  • Loading branch information...
commit 1262a1a0e6bf158349b5c15666140b1377271e0a 1 parent ed9e414
@keesbos keesbos authored
View
2  library/pyjamas/DOM.ie6.py
@@ -52,7 +52,7 @@ def compare(elem1, elem2):
def createInputRadio(group):
JS("""
ua = navigator['userAgent']['toLowerCase']();
- if (ua['indexOf']('msie 9['0']') != -1) {
+ if (ua['indexOf']('msie 9.0') != -1) {
var elem = $doc['createElement']("INPUT");
elem['type'] = 'radio';
elem['name'] = @{{group}};
View
2  library/pyjamas/DOM.mozilla.py
@@ -65,7 +65,7 @@ def eventGetButton(evt):
def getAbsoluteLeft(elem):
JS("""
// Firefox 3 expects getBoundingClientRect
- // getBoundingClientRect can be float: 73['1'] instead of 74, see
+ // getBoundingClientRect can be float: 73.1 instead of 74, see
// gwt's workaround at user/src/com/google/gwt/dom/client/DOMImplMozilla['java']:47
// Please note, their implementation has 1px offset.
if ( typeof @{{elem}}['getBoundingClientRect'] == 'function' ) {
View
4 library/pyjslib.PyJS.py
@@ -420,7 +420,7 @@ def init():
}
pyjslib['String_startswith'] = function(prefix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (pyjslib['isUndefined'](start)) start = 0;
if (pyjslib['isUndefined'](end)) end = this['length'];
@@ -430,7 +430,7 @@ def init():
}
pyjslib['String_endswith'] = function(suffix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (pyjslib['isUndefined'](start)) start = 0;
if (pyjslib['isUndefined'](end)) end = this['length'];
View
4 library/pyjslib.PyV8.py
@@ -296,7 +296,7 @@ def init():
}
@{{String_startswith}} = function(prefix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (@{{isUndefined}}(start)) start = 0;
if (@{{isUndefined}}(end)) end = this['length'];
@@ -306,7 +306,7 @@ def init():
}
@{{String_endswith}} = function(suffix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (@{{isUndefined}}(start)) start = 0;
if (@{{isUndefined}}(end)) end = this['length'];
View
6 pyjs/src/pyjs/builtin/pyjslib.py
@@ -1415,7 +1415,7 @@ def init():
};
String['prototype']['startswith'] = function(prefix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (typeof start == 'undefined') start = 0;
if (typeof end == 'undefined') end = this['length'];
@@ -1425,7 +1425,7 @@ def init():
};
String['prototype']['endswith'] = function(suffix, start, end) {
- // FIXME: accept tuples as suffix (since 2['5'])
+ // FIXME: accept tuples as suffix (since 2.5)
if (typeof start == 'undefined') start = 0;
if (typeof end == 'undefined') end = this['length'];
@@ -5895,7 +5895,7 @@ def repr(x):
// If we get here, the class isn't one we know -> return the class name.
// Note that we replace underscores with dots so that the name will
// (hopefully!) look like the original Python name.
- // (XXX this was for pyjamas 0['4'] but may come back in an optimised mode)
+ // (XXX this was for pyjamas 0.4 but may come back in an optimised mode)
//var s = constructor['$$replace'](new RegExp('_', "g"), '.');
return "<" + constructor + " object>";

0 comments on commit 1262a1a

Please sign in to comment.
Something went wrong with that request. Please try again.