I am calling
Hyena.Store = DS.Store.extend({
revision: 11,
adapter: DS.RESTAdapter.extend()
});
It doesn't work Chrome browser with a heap of errors like Uncaught TypeError: Cannot call method 'extend' of undefined and DS.RESTAdapter has no method extend. Anyone have an idea why? It works fine in Safari and Firefox, but only loads 1 in 10 times in Chrome.
Edit: Adding one of the error outputs as requested:
Uncaught TypeError: Object [object Object] has no method 'setup' ember.js?body=1:29481
Ember.Application.Ember.Namespace.extend.setupEventDispatcher ember.js?body=1:29481
Ember.Application.Ember.Namespace.extend.didBecomeReady ember.js?body=1:29453
DeferredActionQueues.flush ember.js?body=1:4901
Backburner.end ember.js?body=1:4591
Backburner.run ember.js?body=1:4630
Ember.run ember.js?body=1:5112
(anonymous function) ember.js?body=1:29201
fire jquery.js?body=1:3065
self.fireWith jquery.js?body=1:3177
jQuery.extend.ready jquery.js?body=1:434
completed jquery.js?body=1:105
The solution was discovered in part thanks to #ahaurw01 - his mentioning that he could only reproduce in Chrome Canary lead me to check my Chrome version, which (for reason unknown) had 'dev' affixed to the version number. I re-downloaded Chrome from the website, removing that from the version, and it fixed the problem.
Still a concern for future releases of Chrome, but at least it's working for now.
Related
I am trying to make a cross domain ajax sync call with withCredentials=true, i am not getting any error, the browser just got stuck. My chrome version is 40.0.2214.115 m.
I also tried same with latest version (35.0) of firefox and facing same issue " Invalid access error a parameter or an operation is not supported by the underlying object".
What could be the possible reason, any input would be helpful.
I have just finished my project that uses Google Maps API. when I tested on my mobile it failed. I started debugging and it seems to be having problems getting the current position
navigator.geolocation.getCurrentPosition(function(position){ ... }, function(error){ ... }):
This line fails on Chrome and default browser, the callback function is never called (and I don't know how to see what error is thrown).
So I started using the Chrome emulator ( Refer to this ) and no error is being triggered. Everything works well.
And I am passing a second function to handle errors to getCurrentPosition and nothing is displayed... what would be the problem?! Do you know what can I do to make it work on my mobile? Any other test I can do?
I tested on different computers and it works
The settings allow me to share my current position
I have an application that uses MapBox's API to stylize the underlying map which uses Google Places. This all worked perfectly fine when running in IOS 7+, but when I try testing this in IOS 8, it immediately crashes with the following error message:
Terminating app due to uncaught exception NSInternalInconsistencyException, reason: 'The layout constraints still need update after sending -updateConstraints to MapView at {0,0}-{320x444}.
RMMapView or one of its superclasses may have overridden -updateConstraints without calling super. Or, something may have dirtied layout constraints in the middle of updating them. Both are programming errors.'
I have been looking around the Web and Stack for a while but have been unable to find anything helpful unfortunately. Any suggestions?
I deleted all Mapbox framework / headers / lib from my project and reinstalled the latest (1.4.1) mapbox static library (libMapbox.a) and the Headers, and everything was ok after that without changing a line of my code.
I'm coming across this bug , while running my Polymer Element inside a mobile browser. Chrome in this case.
DOMException {message: "Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is null.", name: "InvalidStateError", code: 11, stack: "Error: Failed to execute 'dispatchEvent' on 'Event…/packages/shadow_dom/shadow_dom.debug.js:2678:12)",
INDEX_SIZE_ERR: 1…}
"Error: Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is null.
at o.Map.Tap.o.Handler.extend._simulateEvent (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:9:5230)
at o.Map.Tap.o.Handler.extend._onUp (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:9:4807)
at Document.t.(anonymous function).s (http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js:8:20285)
at invoke (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2805:28)
at dispatchBubbling (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2753:12)
at dispatchEvent (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2706:9)
at HTMLDocument.dispatchOriginalEvent (http://localhost:8080/packages/shadow_dom/shadow_dom.debug.js:2678:12)" shadow_dom.debug.js:2816
It only occurs in a mobile browser, when using Google Maps or Leaflet maps which involves using the
import 'dart:js';
library. There is a bug report which seems to be same issue here https://code.google.com/p/dart/issues/detail?id=16125, but no answer of how to deal with it.
To see if the same issue affected Leaflet I also implemented it using the
'dart:js'
library, but get the same issue.
Is there a solution/work around for this?
I have a ruby script that opens a browser. I have it set to open Firefox first and then Chrome if FF fails for some reason - like FF gets updated and Selenium hasn't caught up yet.
The wait function/definition works fine for FF but always breaks Chrome. Here is the relevant code for the Chrome browser startup:
b = Selenium::WebDriver.for :chrome
b.driver.manage.timeouts.implicit_wait = $BROWSER_IMPLICIT_WAIT
I'm fairly new to Selenium still and I user the wait.until command after declaring something like:
wait = Selenium::WebDriver::Wait.new(:timeout => $BROWSER_EXPLICIT_WAIT)
The above lines of code work fine in Firefox. However, I'd like to run my scripts with both FF and Chrome. Is there a way to do this in Chrome and FF?
Thanks
See now that you provide the error it gets easier to solve.
The reason is that - you have named the selenium driver instance as b
but defining the implicit time as
b.driver.manage.timeouts.implicit_wait = $BROWSER_IMPLICIT_WAIT
ie with b.DRIVER, hence the error message - undefined method 'driver' for
change your command to
b.manage.timeouts.implicit_wait = $BROWSER_IMPLICIT_WAIT