Function: js--split-name
js--split-name is a byte-compiled function defined in js.el.gz.
Signature
(js--split-name STRING)
Documentation
Split a JavaScript name into its dot-separated parts.
This also removes any prototype parts from the split name
(unless the name is just "prototype" to start with).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--split-name (string)
"Split a JavaScript name into its dot-separated parts.
This also removes any prototype parts from the split name
\(unless the name is just \"prototype\" to start with)."
(let ((name (save-match-data
(split-string string "\\." t))))
(unless (and (= (length name) 1)
(equal (car name) "prototype"))
(setq name (remove "prototype" name)))))