MCPcopy
hub / github.com/CodeboxIDE/codebox / setCursor

Function setCursor

client/utils/dragdrop.js:27–34  ·  view source on GitHub ↗
(cs)

Source from the content-addressed store, hash-verified

25 // Define cursor
26 var storedStylesheet = null;
27 var setCursor = function(cs) {
28 // Reset cursor
29 if (storedStylesheet) storedStylesheet.remove();
30 storedStylesheet = null;
31
32 // Set new cursor
33 if (cs) storedStylesheet = $( "<style>*{ cursor: "+cs+" !important; }</style>" ).appendTo($("body"));
34 };
35 var resetCursor = _.partial(setCursor, null);
36
37 var DropArea = hr.Class.extend({

Callers 1

fFunction · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected